package com.zz.parkingsystem.service.impl;

import com.zz.parkingsystem.entity.Weekday;
import com.zz.parkingsystem.entity.Weekend;
import com.zz.parkingsystem.mapper.WeekdayMapper;
import com.zz.parkingsystem.mapper.WeekendMapper;
import com.zz.parkingsystem.service.PCStrService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PCStrServiceImpl implements PCStrService {
    @Resource
    private WeekdayMapper weekdayMapper;
    @Resource
    private WeekendMapper weekendMapper;

    @Override
    public int insertSelective(Weekend record) {
        return weekendMapper.insertSelective(record);
    }
    @Override
    public int insertSelective(Weekday record) {
        return weekdayMapper.insertSelective(record);
    }
    @Override
    public int updateByPrimaryKeySelective(Weekday record) {
        return weekdayMapper.updateByPrimaryKeySelective(record);
    }
    @Override
    public int updateByPrimaryKeySelective(Weekend record) {
        return weekendMapper.updateByPrimaryKeySelective(record);
    }
}
